public class Test07 {
	public static void main(String[] args) {

		int[] a = { 1, 2, 3 };
		try {
			for (int i = 0; i < a.length; i++) {
				try {
					a[i]++;
					if (i == 1) {
						throw new Exception("dd");
					}
				} catch (Exception e) {
					e.printStackTrace();
				}
			}

		} catch (Exception e) {
			e.printStackTrace();
		}
		System.out.println(a);
	}

}